<template>
  <div id="app">
    <router-view />
  </div>
</template>

<script>
import { getUsername } from '@/utils/auth'
import Watermark from '@/utils/waterMark'
export default {
  name: 'App',
  data() {
    return {

    }
  },
  watch: {
    $route(v) {
      if(v.name == 'Effect') {
        if (getUsername()) {
          Watermark.set(getUsername(), true)
        }
      } else {
        Watermark.set('', false)
      }
    }
  }
}
</script>
